// 导入service对象
import service from '../../utils/request'

// ===========================================会议预定记录列表
export function hyd_list(payload = {}) {
    return service.get('/api/hyd_yuding_jilu', { params: payload })
}
// 会议预定记录删除
export function hyd_delete(payload = {}) {
    return service.delete('/api/hyd_yuding_jilu/' + payload.id)
}
// 会议预定记录修改
export function hyd_update(payload = {}) {
    let { id, ...date } = payload
    return service.patch('/api/hyd_yuding_jilu/' + id, date)
}
// 会议预定记录新增
export function hyd_add(payload = {}) {
    return service.post('/api/hyd_yuding_jilu/', payload)
}

// ===========================================会议管理列表
export function hyd_guanli_list(payload = {}) {
    return service.get('/api/hyd_huiyi_guanli', { params: payload })
}
// 会议预定记录删除
export function hyd_guanli_delete(payload = {}) {
    return service.delete('/api/hyd_huiyi_guanli/' + payload.id)
}
// 会议预定记录修改
export function hyd_guanli_update(payload = {}) {
    let { id, ...date } = payload
    return service.patch('/api/hyd_huiyi_guanli/' + id, date)
}
// 会议预定记录新增
export function hyd_guanli_add(payload = {}) {
    return service.post('/api/hyd_huiyi_guanli/', payload)
}